using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Book : Weapon
{
    public override void HandleShoot()
    {
        StartCoroutine(Shoot());
    }

    public IEnumerator Shoot()
    {
        for (int i = 0; i < bulletAmount; i++)
        {
            var bullet = Instantiate(bulletPrefab, transform.position, Quaternion.identity);
            bullet.GetComponent<Fireball>().weapon = this;
            yield return new WaitForSeconds(0.05f);
        }
    }
}
